﻿using System;
using System.Collections.Generic;

using System.Text;

namespace Rance.Battle
{
    public class 恢复Behavior : IBehavior
    {
        public 恢复Behavior() 
        {
            List = new List<恢复BehaviorDetail>();
        }

        public List<恢复BehaviorDetail> List { get; set; }

        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            foreach (var item in List)
            {
                sb.Append(string.Format("    {0}获得回复了兵力{1}:", item.角色, item.恢复量));
            }

            return sb.ToString();
        }
    }

    public class 恢复BehaviorDetail
    {
        public 角色Struct 角色 { get; set; }
        public int 恢复量 { get; set; }
    }
}
